package com.cn.mapper.dao.db5.ComponentMechanical;

import com.cn.bean.pojo.ComponentMechanical.OutsourcingResult;
import com.cn.bean.pojo.workOrder.GrindingReturnSubTable;
import com.cn.bean.pojo.workOrder.OutsourcingResultMainTable;
import com.cn.bean.pojo.workOrder.OutsourcingResultSubTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OutsourcingResultDao {
    List<OutsourcingResult> selectOutsourcingResultList(@Param("page")int page,@Param("limit")int limit,@Param("processName")String processName);
    List<OutsourcingResultSubTable>selectGrindingReturn(OutsourcingResultSubTable outsourcingResultSubTable);
    List<OutsourcingResultSubTable>selectGrindingReturnSub(int id);
    Boolean insertOutsourcingResultMain(OutsourcingResultMainTable outsourcingResultMainTable);
    Boolean insertOutsourcingResultSub(OutsourcingResultSubTable outsourcingResultSubTable);
    Boolean completeOutsourcingWorkOrde(int workOrderNumber);
    Boolean insertGrindingReturnSub(GrindingReturnSubTable grindingReturnSubTable);
    Boolean updateGrindingReturnSub(OutsourcingResultMainTable outsourcingResultMainTable);
    Boolean GrindingReturnAudit(int id);
    Boolean updateOutsourcingResultSub(OutsourcingResultSubTable outsourcingResultSubTable);
    Integer getOutsourcingResultMainAutoid();
    Integer getOutsourcingResultSubAutoid();
    Integer getGrindingReturnSubTableAutoid();
    Boolean delOutsourcing(int id);
    //入库审核
    int updateOutsourcingResultAutoUniqueCode(@Param("uniqueCode")String uniqueCode);
}
